<style>
	.test {
		backgroud: red;
	}
</style>
<!-- <link href="../example/a.css" /> -->
<!--引用外部样式-->
<!-- <link href="../example/b.css" /> -->

<template>
	<div>
		<el-table :data="tableData" border style="width: 100%">
			<el-table-column prop="date" label="注册日期" width="180">
			</el-table-column>
			<el-table-column prop="name" label="姓名" width="180">
			</el-table-column>
			<el-table-column prop="address" label="地址">
			</el-table-column>
			<el-table-column prop="email" label="邮箱">
			</el-table-column>
		</el-table>
	</div>
</template>
<script>
	//这里定义组件
	Rap.define("", [], {
		data: function() {
			return {
				tableData: [],
				// {
				// 	date: '2016-05-02',
				// 	name: '王小虎',
				// 	address: '上海市普陀区金沙江路 1518 弄'
				// }
			}
		},
		created: function() {
			// mockf('adc')
			// axiosPost('adc', '').then(r => {
			// 	this.tableData = r
			// });
			utils.mockopen = 1;
			utils.mockLoopCount = 10;
			let option = {};
			option.mockmethed = 'userinfo';
			let r = utils.myRequest(option);
			console.log(r);
			this.tableData =r ;
		},
		init: function() {},
		methods: {}
	})
</script>
